<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\exception;

use rpo\http\exception\interfaces\AbstractServerException;
use \Exception;

/**
 * The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
 * <p>
 * The implication is that this is a temporary condition which will be alleviated after some delay.
 * If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given,
 * the client SHOULD handle the response as it would for a 500 response.</p>
 * @author		João Batista Neto
 * @final
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 * @see			InternalServerErrorException
 */
final class ServiceUnavailableException extends AbstractServerException {
	/**
	 * Constroi o objeto da exceção
	 * @param string $message A exceção
	 * @param Exception $parent
	 */
	public function __construct( $message , Exception $previous = null ){
		parent::__construct( $message , 503 , $previous );
	}
}